Skip to content

Commit

Permalink
SCUMM HE: Fix map not generating when relaying data.
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleToonCat authored and sev- committed May 12, 2024
1 parent 2727e3e commit a3eb710
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions engines/scumm/he/net/net_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,11 @@ int Net::doJoinSession(Session session) {
_sessionServerHost = nullptr;
}

if (_gameName == "moonbase" && session.mapGenerator > 0) {
// Generate the host's map.
_vm->_moonbase->_map->generateMapWithInfo(session.mapGenerator, session.mapSeed, session.mapSize, session.mapTileset, session.mapEnergy, session.mapTerrain, session.mapWater);
}

bool success = connectToSession(session.host, session.port);
if (!success) {
if (!session.local) {
Expand Down Expand Up @@ -438,11 +443,6 @@ int Net::doJoinSession(Session session) {
return false;
}

if (_gameName == "moonbase" && session.mapGenerator > 0) {
// Generate the host's map.
_vm->_moonbase->_map->generateMapWithInfo(session.mapGenerator, session.mapSeed, session.mapSize, session.mapTileset, session.mapEnergy, session.mapTerrain, session.mapWater);
}

return true;
}

Expand Down

0 comments on commit a3eb710

Please sign in to comment.